/*
 *  SDLInput.cpp
 *  breemlib
 *
 *  Created by James on 8/4/08.
 *  Copyright 2008 __MyCompanyName__. All rights reserved.
 *
 */

#include "SDLInput.h"
#include "StdAfx.h"

CSDLInput::CSDLInput()
{

}

void CSDLInput::Poll()
{
	Uint8 *keystate;
	int i,n;

	input = 0;
	keystate = SDL_GetKeyState(NULL);
	for(i=0;i<MAX_KEYS;i++) {
		n = settings.keyconfig[i].scancode;
		if(keystate[n])
			input |= settings.keyconfig[i].internalcode;		
	}
}

int CSDLInput::Init()
{
	return(0);
}

void CSDLInput::Kill()
{

}
